<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
<script>
    var date = new Date();
    console.log(date);  // 得到的是现在的时间
    var endTime = new Date("2015/12/12");
    console.log(endTime);  // 得到的是 2015 12 .12
    var time = new Date(2015,12,12);

</script>
</body>
</html>